package com.fengwk.user.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fengwk.support.pndao.DaoGen;
import com.fengwk.user.face.entity.UsUserRoleLink;

@DaoGen(sqlCols = UsUserRoleLink.class)
public interface UsUserRoleLinkDao {
    
	int batchInsert(Collection<UsUserRoleLink> usUserRoleLinks);
	int deleteByUserId(@Param("userId") Long userId);
	int deleteByRoleId(@Param("roleId") Long roleId);
	int deleteByUserIdAndRoleIds(@Param("userId") Long userId, @Param("roleIds") Collection<Long> roleIds);
	List<UsUserRoleLink> queryByUserId(@Param("userId") Long userId);
    
}